DelFile

Syntax: @DelFile filespec{, 0/1}

The DelFile command will permanently delete the disk file given as the filespec. The optional errorstate parameter can be used to disable standard Windows errors being reported, such as file not found.

Example

@DelFile 'C:\mydir\myfile.txt', 1

deletes the file myfile.txt. Errors will not be reported.

@DelFile StrVar, 0

deletes the file named in the variable StrVar and enables normal Windows error messages to be reported.